package com.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.pojo.Category;
import com.shop.pojo.vo.NewItemsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品分类  Mapper 接口
 * </p>
 *
 * @author Administrator
 * @since 2020-10-31
 */
@Mapper
public interface CategoryMapperCustom {

    public List getSubCatList(Integer rootCatId);

    /**
     * 通过一级类目id查询六个产品
     *
     * @param rootCatId 类目id
     * @return
     */
    List<NewItemsVO> querySixNewItemsLazy(@Param("paramsMap") Map map);
}
